package cc.sunni.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "jl")
public class PropertiesConfig implements InitializingBean {

    private String profile;

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public static String PROFILE;

    @Override
    public void afterPropertiesSet() throws Exception {
        PROFILE = profile;
    }
}
